<?php
interface ITreeModel
{
    public function LoadTreeBranch($open_childs, $closed_childs = array(), $root = null);

    public function FindNodes($condition = null, $fields = null, $order = null, $limit = null, &$page = null, &$count = null);

    public function FindRecursiveChilds($condition = null, $fields = null);

    public function FindRecursiveParents($condition = null, $fields = null, $root = null);

	public function GetParentNodes($id, $root = null);

	public function GetAllChildIds($parent_id);
}
?>
